public class boy implements Observer{

    private String name;//名字
    public boy(String name) {
        this.name = name;
    }
    @Override
    public void update(String msg) {
        System.out.println(name + ",收到了信息:" + msg+"屁颠颠的去取快递.");
    }
}
